1
From Calculus to Computation
MATH009 Lesson 8
00:00
Numerical analysis is the bridge spanning the gap between the infinite precision of calculus and the finite constraints of a machine. While calculus seeks the exact identity of a function $\phi(t)$, computation seeks a reliable table of values that mimics its behavior.

The Theoretical Foundation

Before a single calculation occurs, we must ensure our search is not in vain. We begin with the Initial Value Problem (IVP):

$$y' = f(t, y), \quad y(t_0) = y_0$$

Theorem 2.4.2 states there exists a unique solution $y = \phi(t)$ of the given problem in some interval about $t_0$. This guarantee justifies our numerical pursuit; if no solution exists, or if it is not unique, our algorithms may converge to nonsense or diverge entirely.

The Integral Bridge

Almost all numerical methods share the same mathematical DNA, derived from the Fundamental Theorem of Calculus. We can express the evolution of the solution $\phi(t)$ from one point to the next as an exact identity:

$$\phi(t_{n+1}) - \phi(t_n) = \int_{t_n}^{t_{n+1}} \phi'(t) dt$$

By substituting the differential equation $\phi'(t) = f(t, \phi(t))$, we obtain the Reconstruction Formula:

$$\phi(t_{n+1}) = \phi(t_n) + \int_{t_n}^{t_{n+1}} f(t, \phi(t)) dt$$

From Continuous to Discrete

A computer cannot evaluate the integral of an unknown function $\phi(t)$. Therefore, we discretize. In the simplest case, we approximate the area under $f(t, \phi(t))$ as a rectangle with width $h = t_{n+1} - t_n$ and height taken at the starting point $f(t_n, y_n)$. This leap from a curved integral to a shaded rectangle (as seen in Figure 8.1.1) creates the Euler formula:

Discretization Step

$$y_{n+1} = y_n + h f(t_n, y_n)$$

Here, $y_n$ represents the numerical approximation of the true value $\phi(t_n)$. The error introduced by this rectangular approximation is known as the local truncation error.

🎯 Core Principle
Numerical methods transform differential equations into algebraic iterations by approximating the integral of the derivative over small sub-intervals. The quality of the approximation depends on how we choose to represent the area under the curve $f(t, y)$.